package com.leaf.u_spring.chapter06;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;

/**
 * 校验注解
 *
 */
public class Spittler {
	
	@NotNull
	@Size(min=5, max=16, message="{username.size}")
	private String userName;
	
	@NotNull
	@Size(min=5, max = 25, message="{password.size}")
	private String password;
	
	@NotNull
	@Email(message="{email.valid}")
	private String email;

}
